<extend name="Public/baseConf" />
<!-- 管理员用户组新增和编辑页面 -->
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-8">
	        <h2>{$auth_group['id']?'编辑':'新增'}用户组</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li><a href="{:U('AuthManager/index')}">权限管理</a></li>
	            <li class="active">
	                <strong>{$auth_group['id']?'编辑':'新增'}用户组</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-4">
            <div class="title-action">
 				<button class="btn btn-primary ajax-post" type="submit" target-form="form-horizontal"><i class="fa fa-check"></i>保存</button>
	            <a class="btn btn-warning" type="submit" href="{:U('index')}"><i class="fa fa-reply"></i>返回</a>
            </div>
        </div>
	</div> 
</block>

<block name="body">
	<div class="row">
	    <div class="col-lg-12">
	        <div class="ibox float-e-margins">
	            <div class="ibox-title">
	                <h5>请在下表中填入信息<small></small></h5>
	                <div class="ibox-tools">
	                    <a class="collapse-link">
	                        <i class="fa fa-chevron-up"></i>
	                    </a>
	                </div>
	            </div>
	            <div class="ibox-content">
	                <form action="{:U('AuthManager/writeGroup')}" enctype="application/x-www-form-urlencoded" method="POST"
		 				class="form-horizontal">
	                    <div class="form-group"><label class="col-sm-2 control-label">用户组</label>
	                        <div class="col-sm-10">
	                        <input required="" type="text" name="title" value="{$auth_group.title}" class="form-control">
	                        </div>
	                    </div>
						<div class="form-group"><label class="col-sm-2 control-label">描述</label>
	                        <div class="col-sm-10">
	                        <textarea id="auth-description"  class="form-control" type="text" name="description">{$auth_group.description}</textarea>
	                        </div>
	                    </div>
	                </form>
	            </div>
	        </div>
	    </div>
	</div> 
</block>
<block name="script">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
</block>